<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业与题库管理 - 智教慧学全景云平台</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        :root {
            --primary: #4361ee;
            --secondary: #b5179e;
            --gradient: linear-gradient(90deg, var(--primary), var(--secondary));
            --dark: #2d3748;
            --light: #f8f9fa;
            --gray: #64748b;
            --success: #06d6a0;
            --warning: #ffd166;
            --danger: #ef476f;
            --shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
            --shadow-hover: 0 15px 35px rgba(67, 97, 238, 0.2);
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.7;
            overflow-x: hidden;
        }

        /* 顶部导航栏 */
        .header {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .logo-icon {
            font-size: 28px;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .logo-text {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--dark);
        }

        .nav-menu {
            display: flex;
            gap: 30px;
        }

        .nav-link {
            text-decoration: none;
            color: var(--gray);
            font-weight: 500;
            font-size: 1rem;
            position: relative;
            padding: 8px 0;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--gradient);
            transition: width 0.3s ease;
        }

        .nav-link:hover::after, .nav-link.active::after {
            width: 100%;
        }

        .user-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .btn {
            padding: 10px 20px;
            border-radius: 50px;
            border: none;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-primary {
            background: var(--gradient);
            color: white;
            box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .btn-outline:hover {
            background: rgba(67, 97, 238, 0.05);
        }

        /* 主内容区 */
        .main-container {
            max-width: 1400px;
            margin: 30px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 25px;
        }

        /* 侧边栏 */
        .sidebar {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 25px;
            height: fit-content;
        }

        .sidebar-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sidebar-menu {
            list-style: none;
        }

        .sidebar-item {
            margin-bottom: 8px;
        }

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--gray);
            font-weight: 500;
        }

        .sidebar-link:hover, .sidebar-link.active {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }

        .sidebar-icon {
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
        }

        .sidebar-divider {
            height: 1px;
            background: rgba(0, 0, 0, 0.05);
            margin: 20px 0;
        }

        /* 内容区 */
        .content {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .page-title {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--dark);
            position: relative;
            padding-bottom: 10px;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--gradient);
            border-radius: 2px;
        }

        .page-actions {
            display: flex;
            gap: 15px;
        }

        /* 卡片样式 */
        .card {
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 25px;
            transition: all 0.3s ease;
        }

        .card:hover {
            box-shadow: var(--shadow-hover);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-icon {
            font-size: 1.3rem;
            color: var(--primary);
        }

        .card-body {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* 表单样式 */
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-label {
            font-weight: 500;
            color: var(--dark);
            font-size: 0.95rem;
        }

        .form-control {
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.95rem;
            color: var(--dark);
            background: var(--light);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }

        .form-row {
            display: flex;
            gap: 20px;
        }

        .form-col {
            flex: 1;
        }

        .tags-input {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 8px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: var(--light);
        }

        .tag {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.85rem;
        }

        .tag-remove {
            cursor: pointer;
            font-size: 0.9rem;
        }

        .tags-input input {
            flex: 1;
            min-width: 120px;
            border: none;
            background: transparent;
            padding: 4px 0;
            outline: none;
            font-size: 0.95rem;
        }

        .file-upload {
            border: 2px dashed #e2e8f0;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .file-upload:hover {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.03);
        }

        .file-icon {
            font-size: 2.5rem;
            color: var(--gray);
            margin-bottom: 15px;
        }

        .file-text {
            color: var(--gray);
            margin-bottom: 10px;
        }

        .file-note {
            font-size: 0.85rem;
            color: #94a3b8;
        }

        /* 题目类型切换 */
        .question-type-tabs {
            display: flex;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 20px;
        }

        .type-tab {
            padding: 12px 20px;
            cursor: pointer;
            font-weight: 500;
            color: var(--gray);
            border-bottom: 3px solid transparent;
        }

        .type-tab:hover {
            color: var(--primary);
        }

        .type-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        /* 题目列表 */
        .questions-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .question-item {
            padding: 15px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .question-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .question-type {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .type-single {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }

        .type-multiple {
            background: rgba(181, 23, 158, 0.1);
            color: var(--secondary);
        }

        .type-fill {
            background: rgba(6, 214, 160, 0.1);
            color: var(--success);
        }

        .type-essay {
            background: rgba(255, 209, 102, 0.1);
            color: var(--warning);
        }

        .question-content {
            font-weight: 500;
            color: var(--dark);
        }

        .question-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            color: var(--gray);
            font-size: 0.9rem;
        }

        .question-actions {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: var(--light);
            color: var(--gray);
            cursor: pointer;
        }

        .action-btn:hover {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }

        /* 试卷预览 */
        .paper-preview {
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 20px;
            background: white;
        }

        .paper-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .paper-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .paper-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
            color: var(--gray);
            margin-bottom: 20px;
        }

        .paper-section {
            margin-bottom: 25px;
        }

        .section-header {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 5px;
            border-bottom: 1px solid #e2e8f0;
        }

        .paper-question {
            margin-bottom: 15px;
        }

        .question-number {
            font-weight: 600;
            margin-right: 8px;
        }

        .question-options {
            margin-left: 25px;
            margin-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        /* 统计图表 */
        .chart-container {
            height: 300px;
            margin-top: 20px;
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .main-container {
                grid-template-columns: 240px 1fr;
            }

            .form-row {
                flex-direction: column;
                gap: 15px;
            }
        }

        @media (max-width: 992px) {
            .main-container {
                grid-template-columns: 1fr;
            }

            .sidebar {
                display: none;
            }

            .nav-menu {
                gap: 20px;
            }

            .page-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .page-actions {
                width: 100%;
                justify-content: space-between;
            }
        }

        @media (max-width: 768px) {
            .header-container {
                flex-wrap: wrap;
            }

            .nav-menu {
                order: 3;
                width: 100%;
                margin-top: 15px;
                gap: 15px;
            }

            .card {
                padding: 20px;
            }

            .question-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .question-actions {
                align-self: flex-end;
            }
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card, .question-item {
            animation: fadeIn 0.5s ease forwards;
        }

        .card:nth-child(1) { animation-delay: 0.1s; }
        .card:nth-child(2) { animation-delay: 0.2s; }
        .card:nth-child(3) { animation-delay: 0.3s; }
        .card:nth-child(4) { animation-delay: 0.4s; }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <header class="header">
        <div class="header-container">
            <a href="#" class="logo">
                <i class="fa fa-graduation-cap logo-icon"></i>
                <span class="logo-text">智教慧学全景云平台</span>
            </a>

            <nav class="nav-menu">
                <a href="#" class="nav-link">首页</a>
                <a href="#" class="nav-link">资源管理</a>
                <a href="#" class="nav-link active">课程管理</a>
                <a href="#" class="nav-link">作业题库</a>
                <a href="#" class="nav-link">数据分析</a>
                <a href="#" class="nav-link">关于我们</a>
            </nav>

            <div class="user-actions">
                <button class="btn btn-outline">
                    <i class="fa fa-bell"></i>
                    <span>通知</span>
                </button>
                <button class="btn btn-primary">
                    <i class="fa fa-user"></i>
                    <span>李老师</span>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <div class="main-container">
        <!-- 侧边栏 -->
        <aside class="sidebar">
            <h3 class="sidebar-title">
                <i class="fa fa-list-ul"></i>
                作业题库管理
            </h3>
            <ul class="sidebar-menu">
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link active">
                        <i class="fa fa-file-text-o sidebar-icon"></i>
                        <span>作业创建</span>
                    </a>
                </li>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-question-circle sidebar-icon"></i>
                        <span>题库管理</span>
                    </a>
                </li>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-file-pdf-o sidebar-icon"></i>
                        <span>试卷管理</span>
                    </a>
                </li>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-bar-chart sidebar-icon"></i>
                        <span>作业分析</span>
                    </a>
                </li>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-tags sidebar-icon"></i>
                        <span>知识点管理</span>
                    </a>
                </li>
            </ul>

            <div class="sidebar-divider"></div>

            <h3 class="sidebar-title">
                <i class="fa fa-history"></i>
                最近操作
            </h3>
            <ul class="sidebar-menu">
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-clock-o sidebar-icon"></i>
                        <span>八年级数学作业</span>
                    </a>
                </li>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-clock-o sidebar-icon"></i>
                        <span>函数章节测试卷</span>
                    </a>
                </li>
                <li class="sidebar-item">
                    <a href="#" class="sidebar-link">
                        <i class="fa fa-clock-o sidebar-icon"></i>
                        <span>代数知识点题库</span>
                    </a>
                </li>
            </ul>
        </aside>

        <!-- 内容区 -->
        <main class="content">
            <div class="page-header">
                <h1 class="page-title">作业与题库集成管理</h1>
                <div class="page-actions">
                    <button class="btn btn-outline">
                        <i class="fa fa-save"></i>
                        <span>保存草稿</span>
                    </button>
                    <button class="btn btn-primary">
                        <i class="fa fa-check"></i>
                        <span>发布作业</span>
                    </button>
                </div>
            </div>

            <!-- 作业基本信息 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fa fa-file-text-o card-icon"></i>
                        作业基本信息
                    </h2>
                </div>
                <div class="card-body">
                    <div class="form-row">
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">作业名称 <span style="color: var(--danger)">*</span></label>
                                <input type="text" class="form-control" placeholder="请输入作业名称，例如：八年级数学第一章单元测试">
                            </div>
                        </div>
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">所属课程 <span style="color: var(--danger)">*</span></label>
                                <select class="form-control">
                                    <option>请选择课程</option>
                                    <option>八年级数学（人教版）</option>
                                    <option>八年级物理（人教版）</option>
                                    <option>八年级英语（外研版）</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="form-row">
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">作业类型 <span style="color: var(--danger)">*</span></label>
                                <select class="form-control">
                                    <option>请选择作业类型</option>
                                    <option>课后练习</option>
                                    <option>单元测试</option>
                                    <option>期中/期末考试</option>
                                    <option>专项训练</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">设置分支 <span style="color: var(--danger)">*</span></label>
                                <select class="form-control">
                                    <option>请选择分支策略</option>
                                    <option>不分层（统一作业）</option>
                                    <option>基础层+提高层（两层）</option>
                                    <option>基础层+标准层+拓展层（三层）</option>
                                    <option>自定义分层</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">关联知识点标签</label>
                        <div class="tags-input">
                            <div class="tag">
                                一次函数
                                <i class="fa fa-times tag-remove"></i>
                            </div>
                            <div class="tag">
                                二元一次方程
                                <i class="fa fa-times tag-remove"></i>
                            </div>
                            <input type="text" placeholder="输入知识点标签，按回车添加">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">作业要求</label>
                        <textarea class="form-control" rows="4" placeholder="请输入作业要求，例如：1. 认真完成每一道题目；2. 注意书写规范；3. 按时提交作业..."></textarea>
                    </div>

                    <div class="form-group">
                        <label class="form-label">作业资料（可选）</label>
                        <div class="file-upload">
                            <i class="fa fa-cloud-upload file-icon"></i>
                            <p class="file-text">点击或拖拽文件至此处上传</p>
                            <p class="file-note">支持PDF、Word、PPT、图片等格式，单个文件不超过50MB</p>
                            <input type="file" style="display: none;">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">参考答案设置</label>
                        <select class="form-control">
                            <option>提交后立即显示答案</option>
                            <option>教师批改后显示答案</option>
                            <option>作业截止后显示答案</option>
                            <option>不显示答案</option>
                        </select>
                    </div>
                </div>
            </div>

            <!-- 练习题配置 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fa fa-question-circle card-icon"></i>
                        练习题配置
                    </h2>
                    <button class="btn btn-outline">
                        <i class="fa fa-plus"></i>
                        添加题目
                    </button>
                </div>
                <div class="card-body">
                    <div class="question-type-tabs">
                        <div class="type-tab active">单选题（2分/题）</div>
                        <div class="type-tab">多选题（4分/题）</div>
                        <div class="type-tab">填空题（3分/题）</div>
                        <div class="type-tab">简答题（10分/题）</div>
                    </div>

                    <div class="questions-list">
                        <div class="question-item">
                            <div class="question-info">
                                <span class="question-type type-single">单选</span>
                                <span class="question-content">下列函数中，属于一次函数的是（ ）</span>
                            </div>
                            <div class="question-meta">
                                <span>2分</span>
                                <span>知识点：一次函数</span>
                                <span>难度：中等</span>
                            </div>
                            <div class="question-actions">
                                <button class="action-btn" title="编辑">
                                    <i class="fa fa-pencil"></i>
                                </button>
                                <button class="action-btn" title="预览">
                                    <i class="fa fa-eye"></i>
                                </button>
                                <button class="action-btn" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="question-item">
                            <div class="question-info">
                                <span class="question-type type-single">单选</span>
                                <span class="question-content">一次函数y=2x+3的图像与y轴的交点坐标是（ ）</span>
                            </div>
                            <div class="question-meta">
                                <span>2分</span>
                                <span>知识点：一次函数图像</span>
                                <span>难度：简单</span>
                            </div>
                            <div class="question-actions">
                                <button class="action-btn" title="编辑">
                                    <i class="fa fa-pencil"></i>
                                </button>
                                <button class="action-btn" title="预览">
                                    <i class="fa fa-eye"></i>
                                </button>
                                <button class="action-btn" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="question-item">
                            <div class="question-info">
                                <span class="question-type type-multiple">多选</span>
                                <span class="question-content">下列关于一次函数y=kx+b（k≠0）的性质说法正确的是（ ）</span>
                            </div>
                            <div class="question-meta">
                                <span>4分</span>
                                <span>知识点：一次函数性质</span>
                                <span>难度：较难</span>
                            </div>
                            <div class="question-actions">
                                <button class="action-btn" title="编辑">
                                    <i class="fa fa-pencil"></i>
                                </button>
                                <button class="action-btn" title="预览">
                                    <i class="fa fa-eye"></i>
                                </button>
                                <button class="action-btn" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="question-item">
                            <div class="question-info">
                                <span class="question-type type-fill">填空</span>
                                <span class="question-content">已知一次函数y=kx+5的图像经过点（2，9），则k的值为______</span>
                            </div>
                            <div class="question-meta">
                                <span>3分</span>
                                <span>知识点：一次函数解析式</span>
                                <span>难度：简单</span>
                            </div>
                            <div class="question-actions">
                                <button class="action-btn" title="编辑">
                                    <i class="fa fa-pencil"></i>
                                </button>
                                <button class="action-btn" title="预览">
                                    <i class="fa fa-eye"></i>
                                </button>
                                <button class="action-btn" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>

                        <div class="question-item">
                            <div class="question-info">
                                <span class="question-type type-essay">简答</span>
                                <span class="question-content">请简述一次函数与一元一次方程、一元一次不等式的关系，并举例说明</span>
                            </div>
                            <div class="question-meta">
                                <span>10分</span>
                                <span>知识点：一次函数综合应用</span>
                                <span>难度：难</span>
                            </div>
                            <div class="question-actions">
                                <button class="action-btn" title="编辑">
                                    <i class="fa fa-pencil"></i>
                                </button>
                                <button class="action-btn" title="预览">
                                    <i class="fa fa-eye"></i>
                                </button>
                                <button class="action-btn" title="删除">
                                    <i class="fa fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 固定试卷配置 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fa fa-file-pdf-o card-icon"></i>
                        固定试卷配置
                    </h2>
                    <div class="page-actions">
                        <button class="btn btn-outline">
                            <i class="fa fa-random"></i>
                            智能组卷
                        </button>
                        <button class="btn btn-outline">
                            <i class="fa fa-plus"></i>
                            手动选题
                        </button>
                    </div>
                </div>
                <div class="card-body">
                    <div class="form-row">
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">试卷名称 <span style="color: var(--danger)">*</span></label>
                                <input type="text" class="form-control" value="八年级数学第一章单元测试卷" readonly>
                            </div>
                        </div>
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">试卷总分 <span style="color: var(--danger)">*</span></label>
                                <input type="number" class="form-control" value="100" readonly>
                            </div>
                        </div>
                    </div>

                    <div class="form-row">
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">考试时长 <span style="color: var(--danger)">*</span></label>
                                <select class="form-control">
                                    <option>60分钟</option>
                                    <option selected>90分钟</option>
                                    <option>120分钟</option>
                                    <option>自定义</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-col">
                            <div class="form-group">
                                <label class="form-label">组卷策略 <span style="color: var(--danger)">*</span></label>
                                <select class="form-control">
                                    <option>按知识点覆盖</option>
                                    <option selected>按难度分布</option>
                                    <option>按题型比例</option>
                                    <option>自定义策略</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="paper-preview">
                        <div class="paper-header">
                            <h3 class="paper-title">八年级数学第一章单元测试卷</h3>
                            <div class="paper-meta">
                                <span>考试时长：90分钟</span>
                                <span>试卷总分：100分</span>
                                <span>命题人：李老师</span>
                            </div>
                        </div>

                        <div class="paper-section">
                            <h4 class="section-header">一、单选题（每题2分，共10题，满分20分）</h4>
                            <div class="paper-question">
                                <span class="question-number">1.</span>
                                <span>下列函数中，属于一次函数的是（ ）</span>
                                <div class="question-options">
                                    <div>A. y=2x²+1</div>
                                    <div>B. y=3x-2</div>
                                    <div>C. y=1/x + 2</div>
                                    <div>D. y=√x + 3</div>
                                </div>
                            </div>
                            <div class="paper-question">
                                <span class="question-number">2.</span>
                                <span>一次函数y=2x+3的图像与y轴的交点坐标是（ ）</span>
                                <div class="question-options">
                                    <div>A. (0, 3)</div>
                                    <div>B. (3, 0)</div>
                                    <div>C. (0, -3/2)</div>
                                    <div>D. (-3/2, 0)</div>
                                </div>
                            </div>
                        </div>

                        <div class="paper-section">
                            <h4 class="section-header">二、多选题（每题4分，共5题，满分20分）</h4>
                            <div class="paper-question">
                                <span class="question-number">1.</span>
                                <span>下列关于一次函数y=kx+b（k≠0）的性质说法正确的是（ ）</span>
                                <div class="question-options">
                                    <div>A. 当k>0时，y随x的增大而增大</div>
                                    <div>B. 当b>0时，函数图像与y轴交于正半轴</div>
                                    <div>C. 当k<0，b<0时，函数图像经过第三象限</div>
                                    <div>D. 函数图像一定经过点（0，b）</div>
                                </div>
                            </div>
                        </div>

                        <div class="paper-section">
                            <h4 class="section-header">三、填空题（每题3分，共6题，满分18分）</h4>
                            <div class="paper-question">
                                <span class="question-number">1.</span>
                                <span>已知一次函数y=kx+5的图像经过点（2，9），则k的值为______</span>
                            </div>
                        </div>

                        <div class="paper-section">
                            <h4 class="section-header">四、简答题（共3题，满分42分）</h4>
                            <div class="paper-question">
                                <span class="question-number">1.</span>
                                <span>（10分）请简述一次函数与一元一次方程、一元一次不等式的关系，并举例说明</span>
                            </div>
                            <div class="paper-question">
                                <span class="question-number">2.</span>
                                <span>（16分）已知一次函数y=kx+b的图像经过点A（1，3）和点B（-2，-3），求：（1）该一次函数的解析式；（2）当x为何值时，y=0；（3）该函数图像与x轴、y轴围成的三角形面积</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 学习分析配置 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fa fa-bar-chart card-icon"></i>
                        学习分析配置
                    </h2>
                </div>
                <div class="card-body">
                    <div class="form-group">
                        <label class="form-label">分析维度设置</label>
                        <div style="display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px;">
                            <label style="display: flex; align-items: center; gap: 8px;">
                                <input type="checkbox" checked> 知识点掌握度分析
                            </label>
                            <label style="display: flex; align-items: center; gap: 8px;">
                                <input type="checkbox" checked> 题目难度适配分析
                            </label>
                            <label style="display: flex; align-items: center; gap: 8px;">
                                <input type="checkbox" checked> 学生能力分层分析
                            </label>
                            <label style="display: flex; align-items: center; gap: 8px;">
                                <input type="checkbox" checked> 答题时间分布分析
                            </label>
                            <label style="display: flex; align-items: center; gap: 8px;">
                                <input type="checkbox"> 错误类型统计分析
                            </label>
                            <label style="display: flex; align-items: center; gap: 8px;">
                                <input type="checkbox"> 班级对比分析
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">分析报告生成设置</label>
                        <select class="form-control">
                            <option selected>自动生成（作业提交后24小时内）</option>
                            <option>手动触发（教师手动生成）</option>
                            <option>定时生成（每日/每周固定时间）</option>
                        </select>
                    </div>

                    <div class="chart-container">
                        <canvas id="analysisChart"></canvas>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // 初始化学习分析图表
        const ctx = document.getElementById('analysisChart').getContext('2d');
        const analysisChart = new Chart(ctx, {
            type: 'radar',
            data: {
                labels: ['一次函数概念', '一次函数图像', '一次函数性质', '一次函数应用', '一次函数综合'],
                datasets: [
                    {
                        label: '班级平均掌握度',
                        data: [85, 78, 72, 65, 58],
                        backgroundColor: 'rgba(67, 97, 238, 0.2)',
                        borderColor: 'rgba(67, 97, 238, 1)',
                        borderWidth: 2,
                        pointBackgroundColor: 'rgba(67, 97, 238, 1)',
                        pointRadius: 4
                    },
                    {
                        label: '年级平均掌握度',
                        data: [78, 72, 68, 60, 52],
                        backgroundColor: 'rgba(181, 23, 158, 0.2)',
                        borderColor: 'rgba(181, 23, 158, 1)',
                        borderWidth: 2,
                        pointBackgroundColor: 'rgba(181, 23, 158, 1)',
                        pointRadius: 4
                    }
                ]
            },
            options: {
                scales: {
                    r: {
                        angleLines: {
                            display: true,
                            color: 'rgba(0, 0, 0, 0.05)'
                        },
                        grid: {
                            color: 'rgba(0, 0, 0, 0.05)'
                        },
                        pointLabels: {
                            font: {
                                size: 12,
                                weight: '500'
                            },
                            color: '#2d3748'
                        },
                        ticks: {
                            backdropColor: 'transparent',
                            color: '#64748b',
                            stepSize: 20,
                            max: 100,
                            min: 0
                        }
                    }
                },
                plugins: {
                    legend: {
                        position: 'top',
                        labels: {
                            font: {
                                size: 12,
                                weight: '500'
                            },
                            padding: 20
                        }
                    },
                    title: {
                        display: true,
                        text: '知识点掌握度预测分析',
                        font: {
                            size: 14,
                            weight: '600'
                        },
                        padding: {
                            bottom: 20
                        }
                    }
                },
                elements: {
                    line: {
                        tension: 0.2
                    }
                }
            }
        });

        // 标签添加功能
        const tagsInput = document.querySelector('.tags-input');
        const input = tagsInput.querySelector('input');

        input.addEventListener('keydown', (e) => {
            if (e.key === 'Enter' && input.value.trim() !== '') {
                const tag = document.createElement('div');
                tag.className = 'tag';
                tag.innerHTML = `${input.value.trim()} <i class="fa fa-times tag-remove"></i>`;
                tagsInput.insertBefore(tag, input);
                input.value = '';

                // 标签删除功能
                tag.querySelector('.tag-remove').addEventListener('click', () => {
                    tagsInput.removeChild(tag);
                });
            }
        });

        // 已存在标签的删除功能
        document.querySelectorAll('.tag-remove').forEach(btn => {
            btn.addEventListener('click', () => {
                btn.parentElement.remove();
            });
        });

        // 题目类型切换
        const typeTabs = document.querySelectorAll('.type-tab');
        typeTabs.forEach(tab => {
            tab.addEventListener('click', () => {
                typeTabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
            });
        });

        // 文件上传模拟
        const fileUpload = document.querySelector('.file-upload');
        const fileInput = fileUpload.querySelector('input');

        fileUpload.addEventListener('click', () => {
            fileInput.click();
        });

        fileInput.addEventListener('change', (e) => {
            if (e.target.files.length > 0) {
                const fileName = e.target.files[0].name;
                alert(`文件 "${fileName}" 上传成功！`);
            }
        });
    </script>
</body>
</html>